import App from './App'

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/network/api/index.js'
Vue.prototype.$api = httpApi.api;

// 引入全局配置
import base from '@/base/index.js'
Vue.prototype.$base = base;
Vue.prototype.$imgUrl = base.imgUrl;


//引入vuex
import store from './store'

//导入全局mixin
import stateMixin from '@/mixin/stateMixin.js';
Vue.mixin(stateMixin)

// util
import util from '@/utils/index.js'
Vue.prototype.$util = util;

// 过滤器
import filter from '@/filter/index.js'
Vue.use(filter)



Vue.prototype.$showToast = function(title) {
	uni.showToast({
		title,
		icon: 'none'
	})
}



import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store,
})



app.$mount()